package com.cheer.service;

import com.cheer.bo.SendInfoBO;
import com.cheer.dto.SendInfoUpdateDTO;
import com.cheer.dto.UserRegisterDTO;
import com.cheer.dto.UserUpdateDTO;
import com.cheer.vo.ExMatchUserVO;
import com.cheer.vo.ShareTicketVO;

import javax.servlet.http.HttpSession;

/**
 * @author cheer
 */
public interface AuthService {

    void login(String code, HttpSession session);

    void register(UserRegisterDTO userRegisterDTO, HttpSession session);

    String getOpenid(HttpSession session);

    Long getUserId(HttpSession session);

    String getHeadImgUrl(HttpSession session);

    ShareTicketVO share(String url);

    ExMatchUserVO info(HttpSession session);

    ExMatchUserVO user(HttpSession session);

    void updateUser(UserUpdateDTO userUpdateDTO, HttpSession session);

    SendInfoBO getSendInfo(HttpSession session);

    void updateSendInfo(SendInfoUpdateDTO sendInfoUpdateDTO, HttpSession session);

    String getUserImage(String openid);
}
